* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 380px;
  min-height: 500px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #f7f7f2; /* 米白 */
  color: #1a1a1a;
  overflow-x: hidden;
}

/* 亮色主题覆盖 */
/* 回滚：移除亮色主题覆盖 */

.container {
  padding: 30px 25px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 24px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.logo-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

#logo-canvas {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: #ffffff;
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.section {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.95;
}

input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #1a1a1a;
  transition: all 0.3s ease;
  backdrop-filter: none;
}

/* 回滚：移除亮色主题覆盖 */

input[type="text"]::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.hint {
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.8;
  line-height: 1.4;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-primary {
  background: #667eea;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 回滚：移除亮色主题覆盖 */

.btn-primary:hover {
  background: #5a62e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 16px 20px;
  font-size: 18px;
}

.status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message.error {
  background: #ffe5e7;
  color: #b00020;
  border: 1px solid #ffcdd2;
}

/* 回滚：移除亮色主题覆盖 */

.status-message.success {
  background: #e6f4ea;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

/* 回滚：移除亮色主题覆盖 */

.status-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(52, 199, 89, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(52, 199, 89, 0.3);
  font-size: 16px;
  font-weight: 500;
}

.status-success svg {
  color: #4caf50;
}

.info-text {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}

.info-text p {
  margin: 0;
}

#time-remaining {
  font-weight: 600;
  color: #1a1a1a;
}

/* 回滚：移除亮色主题覆盖 */

.hidden {
  display: none !important;
}

